package sayAct;

import player.Player;
import card.SayActCard;
import dice.RollDice;

/**
 The sayAct Processor
 */
public class sayActProcessor {
	
	public void updateScore(Player p, SayActCard sAD){
		int score = sAD.getScore();
		int originalSE = p.getSEPoint();
		int newSE= score + originalSE;
		p.setSEPoint(newSE);
	}
	
	public SayActCard getSayActCard(){
		SayActCard sayActCards = new SayActCard();
		RollDice rd = new RollDice();
		
		/**
		Now there is only 3 event
		 */
		int totalQuestion  = sayActCards.getSayActArrLength();
		int diceResult = rd.roll2(totalQuestion);
		return sayActCards.getSayActArr()[diceResult-1];
	}
	
}
